export const GUIConfig = {
  name: {
    name: "组件名称",
    description: "组件名称",
    node: "text",
    default: "chensir"
  },
  margin: {
    name: "边距",
    description: "边距组件",
    node: "margin"
  },
  group: {
    name: "组",
    description: "组控件",
    node: "group",
    children: {
      groupName: {
        name: "子元素",
        node: "text",
        description: "组子元素"
      }
    }
  },
  menu: {
    node: "menu",
    children: {
      tabOne: {
        tab: "子菜单1",
        node: "tab",
        children: {
          stepper: {
            name: "步进器",
            node: "stepper",
            description: "步进器",
            default: 10
          },
          switch: {
            name: "开关",
            node: "switch",
            description: "开关",
            default: true
          },
          select: {
            node: "select",
            name: "选择器",
            description: "选择器",
            default: 1,
            options: [
              {
                label: "选项1",
                value: 1
              },
              {
                label: "选项2",
                value: 2
              }
            ]
          },
          checkbox: {
            node: "checkbox",
            name: "多选框",
            type: "button",
            default: [1, 2],
            options: [
              {
                label: "选项1",
                value: 1
              },
              {
                label: "选项2",
                value: 2
              },
              {
                label: "选项3",
                value: 3
              },
              {
                label: "选项4",
                value: 4
              }
            ]
          },
          radio: {
            name: "单选框",
            type: "button",
            node: "radio",
            default: 1,
            options: [
              {
                label: "选项1",
                value: 1
              },
              {
                label: "选项2",
                value: 2
              },
              {
                label: "选项3",
                value: 3
              },
              {
                label: "选项4",
                value: 4
              }
            ]
          },
          color: {
            name: "颜色选择器",
            node: "color",
            description: "颜色选择器",
            default: "#3ad65f"
          },
          codeEditor: {
            name: "代码编辑区",
            node: "codeEditor",
            description: "代码编辑",
            default: "function name(){return this.name}",
            language: "javascript"
          }
        }
      },
      tabTwo: {
        tab: "子菜单2",
        description: "子菜单2",
        node: "tab",
        children: {
          slider: {
            name: "滑动器",
            node: "slider",
            description: "滑动器",
            default: 50,
            min: 0,
            max: 200
          },
          suite: {
            name: "suite控件",
            show: true,
            trulyNode: "stepper",
            node: "suite",
            default: 100
          },
          rate: {
            name: "评分",
            node: "rate",
            description: "评分控件",
          }
        }
      }
    }
  },
  array: {
    name: "数组对象",
    node: "array",
    length: 2,
    childrenList: [
      {
        text: {
          name: "文本",
          node: "text",
          default: ""
        },
        slider: {
          name: "滑动块",
          node: "slider",
          min: 0,
          max: 100,
          default: 10
        },
        stepper: {
          name: "数值框",
          node: "switch",
          default: false
        },
        editor: {
          name: "编辑器",
          node: "codeEditor",
          language: "json",
          default: [0, 0, 0, 10]
        }
      }
    ]
  }
};